package com.atguigu.gmall.pms.vo;


import com.atguigu.gmall.pms.entity.SpuAttrValueEntity;

import lombok.Data;

import org.apache.commons.lang3.StringUtils;
import org.springframework.util.CollectionUtils;


import java.util.List;


/**
 * @author jinhui
 * @create 2021-08-03 18:38
 */

    public class SpuAttrValueVo extends SpuAttrValueEntity {

    /*public void setValueSelected(List<String> valueSelected) {
        if (CollectionUtils.isEmpty(valueSelected)){
            return;
        }
        this.setAttrValue(StringUtils.join(valueSelected,","));
    }*/



    public void setValueSelected(List<String> valueSelected) {
        if(CollectionUtils.isEmpty(valueSelected)){
            return;
        }
        this.setAttrValue(StringUtils.join(valueSelected,","));
    }

}
